package com.yjc.drygoods.ware.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yjc.common.utils.PageUtils;
import com.yjc.common.utils.Query;
import com.yjc.drygoods.ware.dao.SupplierSpuDetailDao;
import com.yjc.drygoods.ware.entity.PurchaseEntity;
import com.yjc.drygoods.ware.entity.SupplierSpuDetailEntity;
import com.yjc.drygoods.ware.service.SupplierSpuDetailService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author yjc
 * @create 2022-10-24 19:53
 */
@Service("supplierSpuDetailService")
public class SupplierSpuDetailServiceImpl extends ServiceImpl<SupplierSpuDetailDao, SupplierSpuDetailEntity> implements SupplierSpuDetailService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SupplierSpuDetailEntity> page = this.page(
                new Query<SupplierSpuDetailEntity>().getPage(params),
                new QueryWrapper<SupplierSpuDetailEntity>()
        );

        return new PageUtils(page);
    }
}
